home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / linux-bo / shoelace.tar / shoelace / shoe / readme < prev    next >
Text File  |  1992-01-02  |  8KB  |  215 lines

  1.                 W A R N I N G
  2.                  Be Careful
  3.  
  4.  
  5.                 ShoeLace Installation
  6.                 =====================
  7.  
  8. I suggest that you practice making a bootable floppy *before* destroying your
  9. hard disk. Firstly, read *all* the .doc files to familiarise yourself with the
  10. components of the system. With Minix 1.4b or earlier, you will have to use
  11. the supplied boot.h. Copy this file to /usr/include/minix. If you are using
  12. Minix 1.5.0 or later, you can use the boot.h file that is supplied with the
  13. system. All the source files for shoelace should be placed in /usr/src/shoelace.
  14. Now compile all the sources to get:
  15.  
  16.     /shoelace
  17.     /etc/laceup
  18.     /etc/bootlace
  19.     /etc/winiboot
  20.  
  21. along with the files:
  22.  
  23.     /etc/config
  24.     /etc/disktab
  25.  
  26. Now put a file system on a floppy. Copy a /bin/sh, login, etc onto the floppy.
  27. Don't worry if you miss something out, you can always try again when you've
  28. worked out what's missing. What you basically want is the *bare* minimum of
  29. what's on your hard disk to get a system *up*.
  30.  
  31. Now copy the following files onto the floppy:
  32.  
  33.     /shoelace
  34.     /etc/config
  35.  
  36. As mentioned in laceup.doc, you can copy more, but for the time being, you can
  37. get by with these two. Now:
  38.  
  39.     laceup /dev/fd0 5.25dsdd
  40.  
  41. I'm assuming you're fiddling with drive 0 and fiddling with 5.25" dsdd
  42. floppies. Modify to suit your own taste. In addition, you may need to edit
  43. disktab to add extra entries.
  44.  
  45. Now hold your breath and boot the floppy. It should grind and grunt and you
  46. should eventually see the ShoeLace sign on. ShoeLace should complain about not
  47. being able to find anything. This is good.
  48.  
  49. Now you can reboot and copy on to the floppy your Minix kernel image. You can
  50. choose whatever method you like at this point. Keep playing with the floppy
  51. system until you feel comfortable with how everything goes together and how to
  52. edit /etc/config on the floppy to suit your own taste. You can also play with
  53. ShoeLace in its interactive mode.
  54.  
  55. The following is an image of a boot floppy that I use. It is basically the ram
  56. disk image that comes with the Minix distribution with a few modifications:
  57.  
  58. -------------------------------------------------------------------------------
  59. boot
  60. 240 255
  61. d--755 0 0
  62.     etc            d--777 0 0
  63.         bootlace       ---666 0 0 /etc/bootlace
  64.         mount          ---755 0 0 /etc/mount
  65.         system         d--777 0 0
  66.             kernel         ---666 0 0 /etc/system/kernel
  67.             mm             ---666 0 0 /etc/system/mm
  68.             fs             ---666 0 0 /etc/system/fs
  69.             init           ---666 0 0 /etc/system/init
  70.         $
  71.         umount         ---755 0 0 /etc/umount
  72.         rc             ---644 0 0 /etc/rc
  73.         config         ---666 0 0 /etc/config
  74.         ttys           ---644 0 0 /etc/ttys
  75.         disktab        ---666 0 0 /etc/disktab
  76.         update         ---755 0 0 /etc/update
  77.         laceup         ---755 0 0 /etc/laceup
  78.     $
  79.     usr            d--777 0 0
  80.     $
  81.     user           d--777 0 0
  82.     $
  83.     tmp            d--777 0 0
  84.     $
  85.     shoelace       ---666 0 0 /shoelace
  86.     bin            d--777 0 0
  87.         cp             ---755 0 0 /bin/cp
  88.         dosdir         ---755 0 0 /bin/dosdir
  89.         dosread        ---755 0 0 /bin/dosread
  90.         ln             ---755 0 0 /bin/ln
  91.         mkdir          ---755 0 0 /bin/mkdir
  92.         mknod          ---755 0 0 /bin/mknod
  93.         rmdir          ---755 0 0 /bin/rmdir
  94.         doswrite       ---755 0 0 /bin/doswrite
  95.         getlf          ---755 0 0 /bin/getlf
  96.         ls             ---755 0 0 /bin/ls
  97.         sh             ---755 0 0 /bin/sh
  98.         sync           ---755 0 0 /bin/sync
  99.         rm             ---755 0 0 /bin/rm
  100.     $
  101.     dev            d--777 0 0
  102.         at0            b--666 0 0 2 0 1200
  103.         at1            b--666 0 0 2 1 1200
  104.         fd0            b--666 0 0 2 0 360
  105.         fd1            b--666 0 0 2 1 360
  106.         dosA           b--666 0 0 2 0 0
  107.         hd0            b--444 0 0 3 0 41480
  108.         hd1            b--444 0 0 3 1 20731
  109.         hd2            b--444 0 0 3 2 20740
  110.         kmem           c--444 0 0 1 2
  111.         mem            c--444 0 0 1 1
  112.         null           c--666 0 0 1 3
  113.         ram            b--666 0 0 1 0 0
  114.         tty            c--666 0 0 5 0
  115.         tty0           c--666 0 0 4 0
  116.         tty1           c--666 0 0 4 1
  117.         tty2           c--666 0 0 4 2
  118.         dosC           b--444 0 0 3 1 20731
  119.     $
  120. $
  121. -------------------------------------------------------------------------------
  122.  
  123. Once you're happy you can then set up the same files on your hard disk. Now
  124. you are ready to install the bootstrap onto your hard disk partition. Use:
  125.  
  126.     laceup /dev/hd1 wini
  127.  
  128. to install it in the first hard disk partition.
  129.  
  130.             *****************
  131.             * W A R N I N G *
  132.             *****************
  133.     If your hard disk is partitioned, do not install the
  134.     bootstrap on /dev/hd0 or you will destroy your hard
  135.     disk partition table.
  136.  
  137.     You must laceup the partition from which you wish to
  138.     boot Minix.
  139.  
  140.                 WiniBoot Installation
  141.                 =====================
  142.  
  143. WiniBoot allows you to select which hard disk partition you wish to boot.
  144. Those who have not partitioned their hard disks may skip this section.
  145. WiniBoot is always installed on /dev/hd0 --- never in one of the partitions.
  146. If you do so, you will overwrite your previously installed bootstrap.
  147.  
  148.             ***************************
  149.             * C O M P L I C A T I O N *
  150.             ***************************
  151.  
  152.  
  153.     Before WiniBoot will work, it is necessary that the partition
  154.     table accurately reflect where the Minix file system actually
  155.     starts. This is important for those with file systems created
  156.     *before* 1.5.0. In old file systems, the Minix wini driver
  157.     rounded up the parition start sector to an even number. Thus
  158.     the first physical sector of the partition is unused. WiniBoot
  159.     doesn't know about this and will try to boot using the first
  160.     physical sector. This usually results in a crash at boot time.
  161.  
  162.     If you have such a file system, I suggest that you run the new
  163.     fdisk which will adjust the partition table for old file systems
  164.     so that it points to the start of the Minix file system.
  165.  
  166.     Alternatively you can edit your partition table manually (a program
  167.     like Norton's NU is good for this --- I haven't tried de) so
  168.     that the Minix partition starts on an even sector by incrementing
  169.     the starting sector, incrementing the base sector and decrementing
  170.     the partition size. You may also want to adjust the size of
  171.     the previous partition (to make it bigger).
  172.  
  173. Now, before you install WiniBoot on the hard disk, I suggest that you again play
  174. using a floppy. Firstly, format a floppy. Then:
  175.  
  176.     cat /dev/hd0 >/dev/fd0
  177.     # wait a few seconds then kill it
  178.  
  179. which should copy the boot sector from the hard disk to the floppy (wait
  180. sufficient time to ensure that the boot sector is copied before killing the
  181. process --- I usually wait until I hear the floppy head step to the next
  182. track).
  183.  
  184. Now you can:
  185.  
  186.     laceup -w 1 /dev/fd0
  187.  
  188. which will write WiniBoot onto the floppy (yes, I know it sounds silly). Check
  189. that the reported partitions are correct. You may want to choose a partition
  190. other than 1 for the default boot partition.
  191.  
  192. You should now copy ShoeLace and the configuration file into the base directory 
  193. of the hard disk. If you have the hard disk mounted as /usr then:
  194.  
  195.     cp /shoelace /usr/shoelace
  196.     cp /etc/config /usr/etc/config
  197.  
  198. If you have the hard disk mounted as root, then ShoeLace should already be in
  199. place as /shoelace and the configuration file as /etc/config.
  200.  
  201. Now boot the floppy. You should see the WiniBoot sign on and get a report of
  202. the partitions available. Furthermore, WiniBoot should boot the *hard disk*
  203. partitions according to the numbers you type in to the prompt. Note that if
  204. you boot the floppy in drive 0, you will boot hard disk drive 0, floppy
  205. drive 1 for hard disk drive 1, etc.
  206.  
  207. You can use this to check that the ShoeLace installation was successful without
  208. stuffing up your hard disk partitions. Once you are happy with this you can:
  209.  
  210.     laceup -w 1 /dev/hd0
  211.  
  212. The configuration file can be edited to reflect your particular needs.
  213.  
  214.                 =====================
  215.